using System;
using System.Collections.Generic;
using System.Text;

namespace Chat.metier
{
    [Serializable]
    public class Message
    {
        private int _id;

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        private User _sender;

        internal User Sender
        {
            get { return _sender; }
            set { _sender = value; }
        }
        private User _receiver;

        internal User Receiver
        {
            get { return _receiver; }
            set { _receiver = value; }
        }
        private DateTime _date;

        public DateTime Date
        {
            get { return _date; }
            set { _date = value; }
        }
        private String _message;

        public String MessageText
        {
            get { return _message; }
            set { _message = value; }
        }
    }
}
